package com.lzh.eventdemo.propertyChangeListener;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

/**
 * Person对象属性监听器
 *
 * @author Typhoon
 */

public class PersonPropertyListener2 implements PropertyChangeListener {

    @Override

    public void propertyChange(PropertyChangeEvent event) {
        System.out.println("第二个被触发了");
        System.out.println("propertyName:" + event.getPropertyName() + ",\n oldeValue:" + event.getOldValue() + "\n newValue:" + event.getNewValue());
    }

}
